STEP 7: "paper" beats "rock" so the computer will win this round.

  • In the if statement, change the first test value to "rock".
  • In the if statement, change the second test value to "paper".
  • Change the string in .set_text() to "Computer wins!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)